﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace PROJECT_BOMBER.BLL
{
    public class AnimationDefinition
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AnimationDefinition"/> class, the animation's definition used in <see cref="AnimationSprite"/>.
        /// </summary>
        /// <param name="assetname">The picture to load.</param>
        /// <param name="framesize">The frame size.</param>
        /// <param name="nbframes">The number of frames.</param>
        /// <param name="framerate">The framerate. (animation's speed)</param>
        /// <param name="loop">if set to <c>true</c>loop the animation</param>
        public AnimationDefinition(string assetname, Point framesize, Point nbframes, int framerate, bool loop)
        {
            AssetName = assetname;
            FrameSize = framesize;
            NbFrames = nbframes;
            FrameRate = framerate;
            Loop = loop;
        }

        // Variables
        public string AssetName { get; set; }
        public Point FrameSize { get; set; }
        public Point NbFrames { get; set; }
        public int FrameRate { get; set; }
        public bool Loop { get; set; }
    }
}
